<?php /* Smarty version Smarty-3.1.13, created on 2014-11-04 20:26:35
         compiled from "F:\PHP_WorkSapce\cms\templates\admin\index.tpl" */ ?>
<?php /*%%SmartyHeaderCode:226435458c5fbb3c376-40663309%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c8812b3c69a8191d5e18a918dde7e7d453eeffd7' => 
    array (
      0 => 'F:\\PHP_WorkSapce\\cms\\templates\\admin\\index.tpl',
      1 => 1398577086,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '226435458c5fbb3c376-40663309',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'neardata' => 0,
    'data' => 0,
    'usercount' => 0,
    'datacount' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_5458c5fbc88cf5_20012587',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5458c5fbc88cf5_20012587')) {function content_5458c5fbc88cf5_20012587($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("admin/header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<?php echo $_smarty_tpl->getSubTemplate ("admin/navibar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<?php echo $_smarty_tpl->getSubTemplate ("admin/sidebar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<script src="<?php echo @constant('WEBSITE_URL');?>
/public/assets/highcharts3/js/highcharts.js"></script>
<script src="<?php echo @constant('WEBSITE_URL');?>
/public/assets/highcharts3/js/modules/exporting.js"></script>
<script language="javascript">
$(function () {
$('#postreporte').highcharts({
chart: {
type: 'line'
},
title: {
text: '近期变化统计'
},
subtitle: {
text: '文章，文章评论'
},
xAxis: {
categories: [
    <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['neardata']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value){
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>
    '<?php echo $_smarty_tpl->tpl_vars['data']->value[0];?>
',
    <?php } ?>
]
},
yAxis: {
title: {
text: '数量'
}
},
tooltip: {
enabled: true,
formatter: function() {
return '<b>'+ this.series.name +'</b><br/>'+
this.x +': '+ this.y ;
}
},

plotOptions: {
line: {
dataLabels: {
enabled: true
},
enableMouseTracking: false
}
},
series: [{
name: '文章',
data: [  <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['neardata']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value){
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>
    <?php echo $_smarty_tpl->tpl_vars['data']->value[1];?>
,
    <?php } ?>]
}, {
name: '评论',
data: [  <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['neardata']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value){
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>
    <?php echo $_smarty_tpl->tpl_vars['data']->value[2];?>
,
    <?php } ?>]
}]
});



    $('#userreporte').highcharts({
        chart: {
            plotBackgroundColor: null,
            plotBorderWidth: null,
            plotShadow: false
        },
        title: {
            text: '注册用户来源'
        },
        tooltip: {
            pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
        },
        plotOptions: {
            pie: {
                allowPointSelect: true,
                cursor: 'pointer',
                dataLabels: {
                    enabled: true,
                    color: '#000000',
                    connectorColor: '#000000',
                    format: '<b>{point.name}</b>: {point.percentage:.1f} %'
                }
            }
        },
        series: [{
            type: 'pie',
            name: '用户来源',
            data: [
                ['本站注册',<?php echo $_smarty_tpl->tpl_vars['usercount']->value->type0;?>
],
                {
                    name: '其它',
                    y: <?php echo $_smarty_tpl->tpl_vars['usercount']->value->type2;?>
,
                    sliced: true,
                    selected: true
                },
                ['新浪微博',<?php echo $_smarty_tpl->tpl_vars['usercount']->value->type1;?>
]
            ]
        }]
    });
});

</script>
<div class="content">
    <div class="header">
        <div class="stats">
            <p class="stat"><!--span class="number"></span--></p>
        </div>
        <h1 class="page-title">系统统计信息</h1>
    </div>
    <div class="row-fluid">
        <div class="block">
            <a href="#page-stats" class="block-heading" data-toggle="collapse">任务统计</a>
            <div id="page-stats" class="block-body collapse in">
                <div class="stat-widget-container">
                    <div class="stat-widget">
                        <div class="stat-button">
                            <p class="title"><?php echo $_smarty_tpl->tpl_vars['datacount']->value->postcount;?>
</p>
                            <p class="detail">文章总数</p>
                        </div>
                    </div>
                    <div class="stat-widget">
                        <div class="stat-button">
                            <p class="title"><?php echo $_smarty_tpl->tpl_vars['datacount']->value->commentscount;?>
</p>
                            <p class="detail">评论总数</p>
                        </div>
                    </div>

                    <div class="stat-widget">
                        <div class="stat-button">
                            <p class="title"><?php echo $_smarty_tpl->tpl_vars['datacount']->value->usercount;?>
</p>
                            <p class="detail">用户总数</p>
                        </div>
                    </div>

                    <div class="stat-widget">
                        <div class="stat-button">
                            <p class="title"><?php echo $_smarty_tpl->tpl_vars['datacount']->value->tagcount;?>
</p>
                            <p class="detail">标签总数</p>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
    <div class="row-fluid">
            <div class="block span6">
                <a href="#tablewidget" class="block-heading" data-toggle="collapse">监控报表</a>
                <div id="postreporte" class="block-body collapse in">

                </div>
            </div>
            <div class="block span6">
                <a href="#widget1container" class="block-heading" data-toggle="collapse">监控报表 </a>
                <div id="userreporte" class="block-body collapse in">

                </div>
            </div>
        </div>
         <!-- END 以下内容不需更改，请保证该TPL页内的标签匹配即可 -->
<?php echo $_smarty_tpl->getSubTemplate ("admin/footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<?php }} ?>